package com.biscuit.page.basicservice.convert;

import com.biscuit.page.basicservice.api.model.vo.UserDetailVO;
import com.biscuit.page.basicservice.model.entities.mysql.SysUserDetail;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

/**
 * @author mazihao
 * @createTime 2024/4/7 10:29
 */
@Mapper(componentModel = "spring", uses = {UserDetailCustom.class})
public interface UserDetailVOConvert {

    @Mapping(target = "userId", source = "userId")
    @Mapping(target = "backgroundImageItemList", source = "backgroundImage", qualifiedByName = "backgroundImageJson2List")
    UserDetailVO req2Vo(SysUserDetail req);

}
